/*
** init_structcheck.c for check init in /home/deberg_b//projet/Igraph/RayTracer/raytraceryoda/raytracer-yoda-read-only/Benoit
** 
** Made by benoit debergue
** Login   <deberg_b@epitech.net>
** 
** Started on  Wed Apr  4 16:18:43 2012 benoit debergue
** Last update Mon Apr 30 19:52:15 2012 canh-kiet le
*/

#include	"rt.h"

static void    	info_typ(t_check *check)
{
  check->name_info[0] = "SET";
  check->name_info[1] = "LIGHT";
  check->name_info[2] = "PLAN";
  check->name_info[3] = "SPHERE";
  check->name_info[4] = "CYLINDER";
  check->name_info[5] = "CONE";
  check->name_info[6] = NULL;
}

static void	info_obj(t_check *check)
{
  check->name_info[0] = "POS";
  check->name_info[1] = "ROT";
  check->name_info[2] = "LIM";
  check->name_info[3] = "DATA";
  check->name_info[4] = "N_REF";
  check->name_info[5] = "SHINESS";
  check->name_info[6] = "COLOR";
  check->name_info[7] = "TRANSM";
  check->name_info[8] = "ABSORB";
  check->name_info[9] = "REFLEC";
  check->name_info[10] = NULL;
}

static void    	info_light(t_check *check)
{
  check->name_info[0] = "POS";
  check->name_info[1] = "ROT";
  check->name_info[2] = "MODE";
  check->name_info[3] = "COLOR";
  check->name_info[4] = "INTENS";
  check->name_info[5] = NULL;
}

static void    	info_set(t_check *check)
{
  check->name_info[0] = "RES";
  check->name_info[1] = "OEIL";
  check->name_info[2] = "ROT";
  check->name_info[3] = "FOV";
  check->name_info[4] = NULL;
}

void		init_check(t_check **check)
{
  info_set(&((*check)[SET]));
  info_light(&((*check)[LGT]));
  info_obj(&((*check)[OBJ]));
  info_typ(&((*check)[TYP]));
}
